package com.tinyspring.controller;

import com.tinyspring.annotation.Autowired;
import com.tinyspring.annotation.Component;
import com.tinyspring.service.ITestService;
import com.tinyspring.service.impl.TestServiceImpl;

/**
 * @author: TianYuan
 * @description:
 * @version: 1.0
 */
@Component
public class TestController {

    @Autowired
    private ITestService iTestService;

    public String test() {
        String result = iTestService.test();
        System.out.println("TestController.test()被执行");
        return result;
    }

    public String hello() {
        return "hello";
    }

    public ITestService getiTestService() {
        return iTestService;
    }
}
